<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>使用SSH密钥连接Github | Hexo</title>
  <meta name="keywords" content="">
  <meta name="description" content="使用SSH密钥连接Github | Hexo">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick">
<meta property="og:type" content="article">
<meta property="og:title" content="Hello World">
<meta property="og:url" content="http://yoursite.com/2020/07/27/hello-world/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:description" content="Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick">
<meta property="og:locale" content="en_US">
<meta property="article:published_time" content="2020-07-27T05:17:47.002Z">
<meta property="article:modified_time" content="2020-07-27T05:17:47.002Z">
<meta property="article:author" content="John Doe">
<meta name="twitter:card" content="summary">


<link rel="icon" href="/img/avatar.jpg">

<link href="/css/style.css?v=1.1.0" rel="stylesheet">

<link href="/css/hl_theme/atom-light.css?v=1.1.0" rel="stylesheet">

<link href="//cdn.jsdelivr.net/npm/animate.css@4.1.0/animate.min.css" rel="stylesheet">

<script src="//cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script>
<script src="/js/titleTip.js?v=1.1.0" ></script>

<script src="//cdn.jsdelivr.net/npm/highlightjs@9.16.2/highlight.pack.min.js"></script>
<script>
    hljs.initHighlightingOnLoad();
</script>

<script src="//cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.js"></script>



<script src="//cdn.jsdelivr.net/npm/jquery.cookie@1.4.1/jquery.cookie.min.js" ></script>

<script src="/js/iconfont.js?v=1.1.0" ></script>

<meta name="generator" content="Hexo 4.2.1"></head>
<div style="display: none">
  <input class="theme_disqus_on" value="false">
  <input class="theme_preload_comment" value="">
  <input class="theme_blog_path" value="">
  <input id="theme_shortcut" value="true" />
</div>


<body>
<aside class="nav">
    <div class="nav-left">
        <a href="/" class="avatar_target">
    <img class="avatar" src="/img/avatar.jpg" />
</a>
<div class="author">
    <span>John Doe</span>
</div>

<div class="icon">
    
        
        <a title="rss" href="/atom.xml" target="_blank">
            
                <svg class="iconfont-svg" aria-hidden="true">
                    <use xlink:href="#icon-rss"></use>
                </svg>
            
        </a>
        
    
        
        <a title="github" href="https://github.com/yelog" target="_blank">
            
                <svg class="iconfont-svg" aria-hidden="true">
                    <use xlink:href="#icon-github"></use>
                </svg>
            
        </a>
        
    
        
        <a title="facebook" href="https://www.facebook.com/faker.tops" target="_blank">
            
                <svg class="iconfont-svg" aria-hidden="true">
                    <use xlink:href="#icon-facebook"></use>
                </svg>
            
        </a>
        
    
        
    
        
    
        
        <a title="instagram" href="https://www.facebook.com/faker.tops" target="_blank">
            
                <svg class="iconfont-svg" aria-hidden="true">
                    <use xlink:href="#icon-instagram"></use>
                </svg>
            
        </a>
        
    
        
        <a title="reddit" href="https://www.reddit.com/user/yelog/" target="_blank">
            
                <svg class="iconfont-svg" aria-hidden="true">
                    <use xlink:href="#icon-reddit"></use>
                </svg>
            
        </a>
        
    
        
        <a title="weibo" href="http://weibo.com/u/2307534817" target="_blank">
            
                <svg class="iconfont-svg" aria-hidden="true">
                    <use xlink:href="#icon-weibo"></use>
                </svg>
            
        </a>
        
    
        
        <a title="jianshu" href="https://www.jianshu.com/u/ff56736de7cf" target="_blank">
            
                <svg class="iconfont-svg" aria-hidden="true">
                    <use xlink:href="#icon-jianshu"></use>
                </svg>
            
        </a>
        
    
        
        <a title="zhihu" href="https://www.zhihu.com/people/jaytp/activities" target="_blank">
            
                <svg class="iconfont-svg" aria-hidden="true">
                    <use xlink:href="#icon-zhihu"></use>
                </svg>
            
        </a>
        
    
        
    
        
        <a title="oschina" href="https://my.oschina.net/yelog" target="_blank">
            
                <svg class="iconfont-svg" aria-hidden="true">
                    <use xlink:href="#icon-oschina"></use>
                </svg>
            
        </a>
        
    
        
    
        
        <a title="email" href="mailto:jaytp@qq.com" target="_blank">
            
                <svg class="iconfont-svg" aria-hidden="true">
                    <use xlink:href="#icon-email"></use>
                </svg>
            
        </a>
        
    
        
        <a title="qq" href="http://wpa.qq.com/msgrd?v=3&uin=872336115&site=qq&menu=yes" target="_blank">
            
                <svg class="iconfont-svg" aria-hidden="true">
                    <use xlink:href="#icon-qq"></use>
                </svg>
            
        </a>
        
    
        
        <a title="kugou" href="https://www.kugou.com/" target="_blank">
            
                <svg class="iconfont-svg" aria-hidden="true">
                    <use xlink:href="#icon-kugou"></use>
                </svg>
            
        </a>
        
    
        
        <a title="neteasemusic" href="https://music.163.com/#/user/home?id=88151013" target="_blank">
            
                <svg class="iconfont-svg" aria-hidden="true">
                    <use xlink:href="#icon-neteasemusic"></use>
                </svg>
            
        </a>
        
    
</div>




<ul>
    <li><div class="all active" data-rel="All">All<small>(10)</small></div></li>
    
        
            
            <li><div data-rel="后端">后端<small>(3)</small></div>
                
            </li>
            
        
    
        
            
            <li><div data-rel="Java基础">Java基础<small>(4)</small></div>
                
            </li>
            
        
    
</ul>
<div class="left-bottom">
    <div class="menus">
    
    
    
    
    </div>
    <div><a class="about  hasFriend  site_url"  href="/about">About</a><a style="width: 50%"  class="friends">Friends</a></div>
</div>
<input type="hidden" id="yelog_site_posts_number" value="10">

<div style="display: none">
    <span id="busuanzi_value_site_uv"></span>
    <span id="busuanzi_value_site_pv"></span>
</div>

    </div>
    <div class="nav-right">
        <div class="friends-area">
    <div class="friends-title">
        Links
        <i class="iconfont icon-left"></i>
    </div>
    <div class="friends-content">
        <ul>
            
            <li><a target="_blank" href="http://yelog.org/">叶落阁</a></li>
            
        </ul>
    </div>
</div>
        <div class="title-list">
    <div class="right-top">
        <div id="default-panel">
            <i class="iconfont icon-search" data-title="搜索 快捷键 i"></i>
            <div class="right-title">All</div>
            <i class="iconfont icon-file-tree" data-title="切换到大纲视图 快捷键 w"></i>
        </div>
        <div id="search-panel">
            <i class="iconfont icon-left" data-title="返回"></i>
            <input id="local-search-input" />
            <label class="border-line" for="input"></label>
            <i class="iconfont icon-case-sensitive" data-title="大小写敏感"></i>
            <i class="iconfont icon-tag" data-title="标签"></i>
        </div>
        <div id="outline-panel" style="display: none">
            <div class="right-title">大纲</div>
            <i class="iconfont icon-list" data-title="切换到文章列表"></i>
        </div>
    </div>

    <div class="tags-list">
    <input id="tag-search" />
    <div class="tag-wrapper">
        
            <li class="article-tag-list-item">
                <i class="iconfont icon-tag"></i><a>Git</a>
            </li>
        
    </div>

</div>

    
    <nav id="title-list-nav">
        
        <a  class="All "
           href="/2020/07/27/%E5%BE%AE%E6%9C%8D%E5%8A%A1%E9%98%B6%E6%AE%B5/"
           data-tag=""
           data-author="" >
            <span class="post-title" title="微服务阶段">微服务阶段</span>
            <span class="post-date" title="2020-07-27 14:31:06">2020/07/27</span>
        </a>
        
        <a  class="All "
           href="/2020/07/27/hello-world/"
           data-tag=""
           data-author="" >
            <span class="post-title" title="Hello World">Hello World</span>
            <span class="post-date" title="2020-07-27 13:17:47">2020/07/27</span>
        </a>
        
        <a  class="All "
           href="/2020/07/23/Java%E5%9F%BA%E7%A1%805/"
           data-tag=""
           data-author="" >
            <span class="post-title" title="Java基础5-">Java基础5-</span>
            <span class="post-date" title="2020-07-23 23:51:18">2020/07/23</span>
        </a>
        
        <a  class="All Java基础 "
           href="/2020/07/21/Java%E5%9F%BA%E7%A1%804-%E8%AF%A6%E8%A7%A3-ThreadPoolExecutor-%E7%9A%84%E5%8F%82%E6%95%B0%E5%90%AB%E4%B9%89%E5%8F%8A%E6%BA%90%E7%A0%81%E6%89%A7%E8%A1%8C%E6%B5%81%E7%A8%8B/"
           data-tag=""
           data-author="" >
            <span class="post-title" title="java基础4-详解 ThreadPoolExecutor 的参数含义及源码执行流程">java基础4-详解 ThreadPoolExecutor 的参数含义及源码执行流程</span>
            <span class="post-date" title="2020-07-21 21:53:39">2020/07/21</span>
        </a>
        
        <a  class="All Java基础 "
           href="/2020/07/20/Java%E5%9F%BA%E7%A1%803-%E7%BA%BF%E7%A8%8B%E7%9A%84%E7%8A%B6%E6%80%81%E6%9C%89%E5%93%AA%E4%BA%9B/"
           data-tag=""
           data-author="" >
            <span class="post-title" title="Java基础3-线程的状态有哪些">Java基础3-线程的状态有哪些</span>
            <span class="post-date" title="2020-07-20 10:21:12">2020/07/20</span>
        </a>
        
        <a  class="All Java基础 "
           href="/2020/07/17/Java%E5%9F%BA%E7%A1%802-HashMap%E5%BA%95%E5%B1%82%E5%8E%9F%E7%90%86/"
           data-tag=""
           data-author="" >
            <span class="post-title" title="Java基础2-HashMap底层原理">Java基础2-HashMap底层原理</span>
            <span class="post-date" title="2020-07-17 13:02:46">2020/07/17</span>
        </a>
        
        <a  class="All Java基础 "
           href="/2020/07/13/Java%E5%9F%BA%E7%A1%801-Spring%E7%89%B9%E7%82%B9%E6%98%AF%E4%BB%80%E4%B9%88/"
           data-tag=""
           data-author="" >
            <span class="post-title" title="Java基础1-Spring特点是什么">Java基础1-Spring特点是什么</span>
            <span class="post-date" title="2020-07-13 17:24:53">2020/07/13</span>
        </a>
        
        <a  class="All 后端 "
           href="/2020/07/09/%E4%BD%BF%E7%94%A8SSH%E5%AF%86%E9%92%A5%E8%BF%9E%E6%8E%A5Github/"
           data-tag=""
           data-author="" >
            <span class="post-title" title="使用SSH密钥连接Github">使用SSH密钥连接Github</span>
            <span class="post-date" title="2020-07-09 18:13:36">2020/07/09</span>
        </a>
        
        <a  class="All 后端 "
           href="/2020/07/09/%E6%89%8B%E6%8A%8A%E6%89%8B%E6%95%99%E4%BD%A0%E4%BB%8E0%E5%BC%80%E5%A7%8B%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/"
           data-tag=""
           data-author="" >
            <span class="post-title" title="手把手教你从0开始搭建个人博客">手把手教你从0开始搭建个人博客</span>
            <span class="post-date" title="2020-07-09 17:27:06">2020/07/09</span>
        </a>
        
        <a  class="All 后端 "
           href="/2020/07/08/Git%E5%AE%89%E8%A3%85/"
           data-tag="Git"
           data-author="" >
            <span class="post-title" title="Git安装">Git安装</span>
            <span class="post-date" title="2020-07-08 13:04:43">2020/07/08</span>
        </a>
        
        <div id="no-item-tips">

        </div>
    </nav>
    <div id="outline-list">
    </div>
</div>
    </div>
    <div class="hide-list">
        <div class="semicircle" data-title="切换全屏 快捷键 s">
            <div class="brackets first"><</div>
            <div class="brackets">&gt;</div>
        </div>
    </div>
</aside>
<div id="post">
    <div class="pjax">
        <article id="post-使用SSH密钥连接Github" class="article article-type-post" itemscope itemprop="blogPost">
    
        <h1 class="article-title">使用SSH密钥连接Github</h1>
    
    <div class="article-meta">
        
        
        
        <span class="book">
            <i class="iconfont icon-category"></i>
            
            <a  data-rel="后端">后端</a>
            
        </span>
        
        
    </div>
    <div class="article-meta">
        
            Created At : <time class="date" title='Updated At: 2020-07-24 01:00:04'>2020-07-09 18:13</time>
        
    </div>
    <div class="article-meta">
        
        
        <span id="busuanzi_container_page_pv">
            Views 👀 :<span id="busuanzi_value_page_pv">
                <span class="count-comment">
                    <span class="spinner">
                      <div class="cube1"></div>
                      <div class="cube2"></div>
                    </span>
                </span>
            </span>
        </span>
        
        
    </div>
    
    <div class="toc-ref">
    
        <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#一、关于-SSH"><span class="toc-text">一、关于 SSH</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#二、为什么使用SSH"><span class="toc-text">二、为什么使用SSH</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#Windows环境下生成SSH-key且连接GitHub"><span class="toc-text">Windows环境下生成SSH key且连接GitHub</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#三、检查现有的SSH密钥"><span class="toc-text">三、检查现有的SSH密钥</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#第一步、看看是否存在SSH密钥-keys"><span class="toc-text">第一步、看看是否存在SSH密钥(keys)</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#第二步、创建一对新的SSH密钥-keys"><span class="toc-text">第二步、创建一对新的SSH密钥(keys)</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#第三步、在GitHub账户中添加你的公钥"><span class="toc-text">第三步、在GitHub账户中添加你的公钥</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#1-登陆GitHub-进入你的Account-Settings"><span class="toc-text">1. 登陆GitHub,进入你的Account Settings.</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#2-在左边菜单，点击”SSH-Keys”，点击”Add-SSH-key”按钮"><span class="toc-text">2. 在左边菜单，点击”SSH Keys”，点击”Add SSH key”按钮</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#3-粘贴你的密钥到key输入框中-再点击”Add-Key”按钮。"><span class="toc-text">3. 粘贴你的密钥到key输入框中,再点击”Add Key”按钮。</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#4-再弹出窗口，输入你的GitHub密码，点击确认按钮。"><span class="toc-text">4. 再弹出窗口，输入你的GitHub密码，点击确认按钮。</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#5-出现以下画面，恭喜你，成功啦！"><span class="toc-text">5. 出现以下画面，恭喜你，成功啦！</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#6-打开Git-Bash输入hexo-g-d进行部署，可能会弹出叫你输入账号密码，按步骤输入即可。"><span class="toc-text">6.打开Git Bash输入hexo g -d进行部署，可能会弹出叫你输入账号密码，按步骤输入即可。</span></a></li></ol></li></ol></li></ol>
    
<style>
    .left-col .switch-btn,
    .left-col .switch-area {
        display: none;
    }
    .toc-level-3 i,
    .toc-level-3 ol {
        display: none !important;
    }
</style>
</div>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h1 id="一、关于-SSH"><a href="#一、关于-SSH" class="headerlink" title="一、关于 SSH"></a>一、关于 SSH</h1><hr>
<blockquote>
<ul>
<li>使用 SSH 协议可以连接远程服务器和服务并向它们验证。 利用 SSH 密钥可以连接 GitHub，而无需在每次访问时提供用户名或密码。</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>在设置 SSH 时，将会生成 SSH 密钥并将其添加到 ssh-agent，然后将该密钥添加到你的 GitHub 帐户。 将 SSH 密钥添加到 ssh-agent，通过使用密码确保 SSH 密钥增加一层保护。 </li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>要对使用 SAML 单点登录的组织所拥有的仓库使用 SSH 密钥，你需要先授权。 </li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>建议定期查阅 SSH 密钥列表，撤销任何无效或安全受到威胁的密钥。</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>如果 SSH 密钥一年未使用，则作为安全预防措施，GitHub 会自动删除非活动的 SSH 密钥。</li>
</ul>
</blockquote>
<h1 id="二、为什么使用SSH"><a href="#二、为什么使用SSH" class="headerlink" title="二、为什么使用SSH"></a>二、为什么使用SSH</h1><hr>
<blockquote>
<ul>
<li>用Github，也许大家觉得比较麻烦的就是在每次push的时候，都需要输入用户名和密码。如果使用SSH，就可以记住用户名，并创建属于自己的密码来保证安全操作，还有神奇的一招可以“不用输入密码”哦。下面将介绍如何创建SSH Keys并将公钥加到GitHub账户中，使用SSH Keys在本机和GitHub之间建立一个安全的连接。</li>
</ul>
</blockquote>
<hr>
<h1 id="Windows环境下生成SSH-key且连接GitHub"><a href="#Windows环境下生成SSH-key且连接GitHub" class="headerlink" title="Windows环境下生成SSH key且连接GitHub"></a>Windows环境下生成SSH key且连接GitHub</h1><hr>
<h1 id="三、检查现有的SSH密钥"><a href="#三、检查现有的SSH密钥" class="headerlink" title="三、检查现有的SSH密钥"></a>三、检查现有的SSH密钥</h1><hr>
<p> <strong>3-1.在生成SSH密钥之前，您可以检查是否有任何现有的SSH密钥。</strong></p>
<p> <strong>3-2.打开Git Bash。</strong></p>
<h2 id="第一步、看看是否存在SSH密钥-keys"><a href="#第一步、看看是否存在SSH密钥-keys" class="headerlink" title="第一步、看看是否存在SSH密钥(keys)"></a><strong>第一步、看看是否存在SSH密钥(keys)</strong></h2><hr>
<p> <em>首先，我们需要看看是否看看本机是否存在SSH keys,打开Git Bash,并运行:</em></p>
<blockquote>
<p>$cd ~/.ssh</p>
</blockquote>
<p><em>检查你本机用户home目录下是否存在.ssh目录</em><br><em>如果，不存在此目录，则进行第二步操作，否则，你本机已经存在ssh公钥和私钥，可以略过第二步，直接进入第三步操作。</em></p>
<h2 id="第二步、创建一对新的SSH密钥-keys"><a href="#第二步、创建一对新的SSH密钥-keys" class="headerlink" title="第二步、创建一对新的SSH密钥(keys)"></a><strong>第二步、创建一对新的SSH密钥(keys)</strong></h2><hr>
<p> <em>输入如下命令：</em></p>
<blockquote>
<p>$ssh-keygen -t rsa -C “<a href="mailto:your_email@example.com">your_email@example.com</a>“</p>
</blockquote>
<p> <em>这将按照你提供的邮箱地址，创建一对密钥</em></p>
<blockquote>
<p>Generating public/private rsa key pair.<br>Enter file in which to save the key (/c/Users/you/.ssh/id_rsa): [Press enter]</p>
</blockquote>
<p> <em>直接回车，则将密钥按默认文件进行存储。此时也你的密钥的存放地址在括号里的标注位置，根据括号的地址即可查找密钥的存放位置.接着，根据提示，你需要输入密码和确认密码（可以不用输入的，只管回车就行。）。相关提示如下：</em></p>
<blockquote>
<p>Enter passphrase (empty for no passphrase): [Type a passphrase]<br>Enter same passphrase again: [Type passphrase again]</p>
</blockquote>
<p> <em>输入完成之后，屏幕会显示如下信息：</em></p>
<p><img src="https://i.loli.net/2020/07/13/ANeYVz49Z3vWdKE.jpg" alt=""></p>
<h2 id="第三步、在GitHub账户中添加你的公钥"><a href="#第三步、在GitHub账户中添加你的公钥" class="headerlink" title="第三步、在GitHub账户中添加你的公钥"></a><strong>第三步、在GitHub账户中添加你的公钥</strong></h2><hr>
<p><em>运行如下命令，将公钥的内容复制到系统粘贴板中。</em></p>
<blockquote>
<p>clip &lt; ~/.ssh/id_rsa.pub</p>
</blockquote>
<p><em>接着：</em></p>
<h3 id="1-登陆GitHub-进入你的Account-Settings"><a href="#1-登陆GitHub-进入你的Account-Settings" class="headerlink" title="1. 登陆GitHub,进入你的Account Settings."></a>1. 登陆GitHub,进入你的Account Settings.</h3><hr>
<blockquote>
<p>userbar-account-settings</p>
</blockquote>
<p><img src="https://i.loli.net/2020/07/13/k523v8CPVxGnOmN.png" alt=""></p>
<h3 id="2-在左边菜单，点击”SSH-Keys”，点击”Add-SSH-key”按钮"><a href="#2-在左边菜单，点击”SSH-Keys”，点击”Add-SSH-key”按钮" class="headerlink" title="2. 在左边菜单，点击”SSH Keys”，点击”Add SSH key”按钮"></a>2. 在左边菜单，点击”SSH Keys”，点击”Add SSH key”按钮</h3><hr>
<blockquote>
<p>settings-sidebar-ssh-keys</p>
</blockquote>
<blockquote>
<p>ssh-add-ssh-key</p>
</blockquote>
<p><img src="https://i.loli.net/2020/07/13/Vh7TGofPWBsAbN6.png" alt=""></p>
<h3 id="3-粘贴你的密钥到key输入框中-再点击”Add-Key”按钮。"><a href="#3-粘贴你的密钥到key输入框中-再点击”Add-Key”按钮。" class="headerlink" title="3. 粘贴你的密钥到key输入框中,再点击”Add Key”按钮。"></a>3. 粘贴你的密钥到key输入框中,再点击”Add Key”按钮。</h3><hr>
<blockquote>
<p>ssh-key-paste<br>ssh-add-key</p>
</blockquote>
<p><img src="https://i.loli.net/2020/07/13/fHQlEJ1RGTBrwgL.png" alt=""></p>
<h3 id="4-再弹出窗口，输入你的GitHub密码，点击确认按钮。"><a href="#4-再弹出窗口，输入你的GitHub密码，点击确认按钮。" class="headerlink" title="4. 再弹出窗口，输入你的GitHub密码，点击确认按钮。"></a>4. 再弹出窗口，输入你的GitHub密码，点击确认按钮。</h3><hr>
<p><img src="https://i.loli.net/2020/07/13/sAN6Q4RzfpHVZcg.png" alt=""></p>
<h3 id="5-出现以下画面，恭喜你，成功啦！"><a href="#5-出现以下画面，恭喜你，成功啦！" class="headerlink" title="5. 出现以下画面，恭喜你，成功啦！"></a>5. 出现以下画面，恭喜你，成功啦！</h3><hr>
<p><img src="https://i.loli.net/2020/07/13/5qLnAMzVOYNBpZE.png" alt=""></p>
<h3 id="6-打开Git-Bash输入hexo-g-d进行部署，可能会弹出叫你输入账号密码，按步骤输入即可。"><a href="#6-打开Git-Bash输入hexo-g-d进行部署，可能会弹出叫你输入账号密码，按步骤输入即可。" class="headerlink" title="6.打开Git Bash输入hexo g -d进行部署，可能会弹出叫你输入账号密码，按步骤输入即可。"></a>6.打开Git Bash输入hexo g -d进行部署，可能会弹出叫你输入账号密码，按步骤输入即可。</h3><p> <img src="https://i.loli.net/2020/07/13/JEzlcB3Hwo8e6Zd.png" alt=""></p>
<p> <img src="https://i.loli.net/2020/07/13/eGYlrahAnbBLtW4.png" alt=""></p>

      
       <hr><span style="font-style: italic;color: gray;"> 转载请注明来源，欢迎对文章中的引用来源进行考证，欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论，也可以邮件至 jaytp@qq.com </span>
    </div>
</article>


<p>
    <a  class="dashang" onclick="dashangToggle()">💰</a>
</p>






    




    </div>
    <div class="copyright">
        <p class="footer-entry">
    ©2016-2020 Yelog
</p>
<p class="footer-entry">Built with <a href="https://hexo.io/" target="_blank">Hexo</a> and <a href="https://github.com/yelog/hexo-theme-3-hexo" target="_blank">3-hexo</a> theme</p>

    </div>
    <div class="full-toc">
        <button class="full" data-title="切换全屏 快捷键 s"><span class="min "></span></button>
<a class="" id="rocket" ></a>

    </div>
</div>

<div class="hide_box" onclick="dashangToggle()"></div>
<div class="shang_box">
    <a class="shang_close"  onclick="dashangToggle()">×</a>
    <div class="shang_tit">
        <p>Help us with donation</p>
    </div>
    <div class="shang_payimg">
        <div class="pay_img">
            <img src="/img/alipay.jpg" class="alipay" title="扫码支持">
            <img src="/img/weixin.jpg" class="weixin" title="扫码支持">
        </div>
    </div>
    <div class="shang_payselect">
        <span><label><input type="radio" name="pay" checked value="alipay">alipay</label></span><span><label><input type="radio" name="pay" value="weixin">weixin</label></span>
    </div>
</div>


</body>
<script src="/js/jquery.pjax.js?v=1.1.0" ></script>

<script src="/js/script.js?v=1.1.0" ></script>
<script>
    var img_resize = 'default';
    function initArticle() {
        /*渲染对应的表格样式*/
        
            $("#post .pjax table").addClass("green_title");
        

        /*渲染打赏样式*/
        
        $("input[name=pay]").on("click", function () {
            if($("input[name=pay]:checked").val()=="weixin"){
                $(".shang_box .shang_payimg .pay_img").addClass("weixin_img");
            } else {
                $(".shang_box .shang_payimg .pay_img").removeClass("weixin_img");
            }
        })
        

        /*高亮代码块行号*/
        

        /*访问数量*/
        
        $.getScript("//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js");
        

        /*代码高亮，行号对齐*/
        $('.pre-numbering').css('line-height',$('.has-numbering').css('line-height'));

        
        
    }

    /*打赏页面隐藏与展示*/
    
    function dashangToggle() {
        $(".shang_box").fadeToggle();
        $(".hide_box").fadeToggle();
    }
    

</script>

<!--加入行号的高亮代码块样式-->

<!--自定义样式设置-->
<style>
    
    
    .nav {
        width: 542px;
    }
    .nav.fullscreen {
        margin-left: -542px;
    }
    .nav-left {
        width: 120px;
    }
    
    
    @media screen and (max-width: 1468px) {
        .nav {
            width: 492px;
        }
        .nav.fullscreen {
            margin-left: -492px;
        }
        .nav-left {
            width: 100px;
        }
    }
    
    
    @media screen and (max-width: 1024px) {
        .nav {
            width: 492px;
            margin-left: -492px
        }
        .nav.fullscreen {
            margin-left: 0;
        }
    }
    
    @media screen and (max-width: 426px) {
        .nav {
            width: 100%;
        }
        .nav-left {
            width: 100%;
        }
    }
    
    
    .nav-right .title-list nav a .post-title, .nav-right .title-list #local-search-result a .post-title {
        color: #383636;
    }
    
    
    .nav-right .title-list nav a .post-date, .nav-right .title-list #local-search-result a .post-date {
        color: #5e5e5f;
    }
    
    
    .nav-right nav a.hover, #local-search-result a.hover{
        background-color: #e2e0e0;
    }
    
    

    /*列表样式*/
    

    /* 背景图样式 */
    
    


    /*引用块样式*/
    

    /*文章列表背景图*/
    

    
</style>







</html>
